import Vue from 'vue'
import Router from 'vue-router'
import routers from './routers'
import {getQueryString} from '@/core/utils'
Vue.use(Router)

const router = new Router({
  routes: routers
})
// router.beforeEach((to, from, next) => {
//   // 设置标题
//   if (to.meta.title) {
//     document.title = to.meta.title
//   } else {
//     document.title = to.name
//   }
// })
// router.afterEach((to) => {
//   window.scrollTo(0, 0)
// })
export default router
